package com.lu.sb210219.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;


@Getter
@AllArgsConstructor
public enum ApiResultCodeEnum {
    /**
     *
     */
    SUCCESS(200, "请求响应成功"),
    ERROR(9999, "请求响应失败"),
    PERMISSION_FORBIDDEN(9980, "权限不足"),

    ADD_ERROR(9810, "添加失败"),
    DELETE_ERROR(9820, "删除失败"),
    DELETE_NULL_ERROR(9821, "删除失败,数据不存在"),
    UPDATE_ERROR(9830, "更新失败"),
    SELECT_ERROR(9840, "查询失败"),

    /**
     * token 10**
     */
    TOKEN_NULL(1000, "请先登录"),
    TOKEN_EXPIRED(1001, "登录已过期"),
    TOKEN_MALFORMED(1002, "token令牌格式错误"),
    TOKEN_UNSUPPORTED(1003, "不支持的token令牌"),
    TOKEN_ERROR(1004, "token令牌错误"),

    /**
     * 停车场 20**
     */
    FASTDFS_URL(20001,"fastdfs路径错误"),
    JSON_FORMAT_ERROR(20002, "JSON格式错误"),
    FORBIDDEN(20004, "暂无权操作，如需授权，请联系管理员"),
    NOT_FOUND(20005, "未找到");

    private final Integer code;
    private final String message;
}
